From c1f65f80f4e60f96e2e3e34bb12ceb72f1201ff0 Mon Sep 17 00:00:00 2001 From: robertl Date: Thu, 6 May 2004 13:26:45 +0000 Subject: [PATCH] Fix mem corruption when using get_posn. --- garmin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/garmin.c b/garmin.c index 802e96338..43d536ebd 100644 --- a/garmin.c +++ b/garmin.c @@ -155,7 +155,7 @@ waypt_read(void) waypoint *wpt = waypt_new(); wpt->latitude = gps_save_lat; wpt->longitude = gps_save_lon; - wpt->shortname = "Position"; + wpt->shortname = xstrdup("Position"); waypt_add(wpt); return; } -- 2.30.2